package com.yang.service.order.service;

import com.yang.server.member.pojo.User;
import com.yang.service.order.feigin.MemberServiceFeigin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: Mu_YI
 * @Date: 2019/6/5 13:31
 * @Version 1.0
 */


public class YangServiceImpl  implements YangOrderService {

    @Autowired
    private MemberServiceFeigin memberServiceFeigin;

    @RequestMapping(value = "/orderToMember")
    public String orderToMember(String name) {
        User user =  memberServiceFeigin.getMember(name);
        return user == null ? "查无此人" : user.toString();
    }
}
